package com.example.kaoqinmanager;

import android.app.Application;
import android.os.Handler;
import android.os.Looper;

import org.litepal.LitePal;

/**
 * @author ypk
 * 创建日期：2021/12/13  17:19
 * 描述：
 */
public class InitApplication extends Application {

    private static InitApplication instance;
    public static Handler mHandler;

    public static InitApplication getInstance() {
        return instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        mHandler = new Handler(Looper.getMainLooper());

        /**
         * 初始化LitePal数据库
         */
        LitePal.initialize(this);
    }
    public static Handler getHandler() {
        return mHandler;
    }
}
